<h1>New sprint</h1>

<%= error_messages_for :sprint %>

<% form_for(@sprint, :url => { :action => "create" }) do |f| %>
  <p>
	<%= label(:sprint, :goal, "Goal")%><br />
	<%= f.text_field :goal %><br />

	
	<%= label(:sprint, :start_at, "Start")%><br />
	<%= f.text_field :start_at %><br />

	<%= label(:sprint, :ends_at, "Ends")%><br />
	<%= f.text_field :ends_at %><br />

	<%= f.hidden_field(:team_id) %>

	<%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', sprints_path %>
